﻿<phone:PhoneApplicationPage 
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
	xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:local="clr-namespace:Nok_Air"
	mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="800"
	x:Class="Nok_Air.Finish"
	Foreground="{StaticResource PhoneForegroundBrush}"
	Orientation="Portrait" FontFamily="/Nok Air;component/Fonts/Fonts.zip#PSL Display" FontSize="40">

	<Grid x:Name="LayoutRoot" Background="Transparent" d:DataContext="{d:DesignData /SampleData/MainViewModelSampleData.xaml}">
		<Grid.RowDefinitions>
			<RowDefinition Height="70"/>
			<RowDefinition Height="*"/>
			<RowDefinition Height="80"/>
		</Grid.RowDefinitions>
		<Grid Style="{StaticResource TopAppBarStyle}">
			<Grid.ColumnDefinitions>
				<ColumnDefinition  Width="1*"/> 		
				<ColumnDefinition  Width="2*"/> 		
				<ColumnDefinition  Width="1*"/> 		
			</Grid.ColumnDefinitions> 
			<!--<Button x:Name="backButton" Content="Back" HorizontalAlignment="Left"  Width="130" Margin="15,0,0,0" Height="60" Style="{StaticResource BackButtonStyle}" Foreground="White" Visibility="Collapsed" />-->
			<TextBlock x:Name="Title_checkIn_TextBlock" Margin="0" TextWrapping="Wrap" Text="Finish" FontSize="48" TextAlignment="Center" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White" Grid.Column="1"/>
			<Button x:Name="continueButton" Content="{Binding Done}" Style="{StaticResource BlueButtonStyle}" Margin="5,0" Click="continueButton_Click" Foreground="White" Grid.Column="2" VerticalAlignment="Center" FontSize="40" />
		</Grid>
		<Grid Style="{StaticResource ContentStyle}" Margin="0">
            <ScrollViewer Margin="10" HorizontalScrollBarVisibility="Disabled">
                <StackPanel>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="2.5*"/>
                            <ColumnDefinition Width="1*"/>
                        </Grid.ColumnDefinitions>
                        <StackPanel>
                            <TextBlock x:Name="headTitleText" HorizontalAlignment="Left" FontSize="48" Foreground="Black" FontWeight="Bold" TextAlignment="Center" VerticalAlignment="Center" Text="{Binding ThanksMsg1}"/>
                            <TextBlock x:Name="bookingNumberTextBlock1" Margin="0" TextWrapping="Wrap" Text="{Binding ThanksMsg2}" Foreground="Black" FontSize="38" HorizontalAlignment="Left" VerticalAlignment="Center"/>
                        </StackPanel>
                        <Image HorizontalAlignment="Center" Grid.Column="1" VerticalAlignment="Center" Source="/ApplicationIconTile.png"/>
                    </Grid>
                    <StackPanel>
                        <StackPanel>
                            <TextBlock TextWrapping="Wrap" Text="{Binding BookingNum}" VerticalAlignment="Top" HorizontalAlignment="Left" Foreground="#FF0C0000" Margin="10,0,0,0"/>
                            <Path Data="M0,30 L416,30" Margin="10,0,0,0" Stretch="Fill" Stroke="Black" UseLayoutRounding="False"/>
                            <TextBlock Margin="0" TextWrapping="Wrap" Text="{Binding BookingItems.BookNo}" Foreground="#FF0C0000" FontSize="32" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                        </StackPanel>
                        <StackPanel>
                            <TextBlock TextWrapping="Wrap" Text="{Binding PaycodeNo}" VerticalAlignment="Top" HorizontalAlignment="Left" Foreground="#FF0C0000" Margin="10,0,0,0"/>
                            <Path Data="M0,30 L416,30" Margin="10,0,0,0" Stretch="Fill" Stroke="Black" UseLayoutRounding="False"/>
                            <TextBlock Margin="0" TextWrapping="Wrap" Text="{Binding BookingItems.PAYMENTS.PaymentNo}" Foreground="#FF0C0000" FontSize="32" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                        </StackPanel>
                        <StackPanel>
                            <TextBlock TextWrapping="Wrap" Text="{Binding Status}" VerticalAlignment="Top" HorizontalAlignment="Left" Foreground="#FF0C0000" Margin="10,0,0,0"/>
                            <Path Data="M0,30 L416,30" Margin="10,0,0,0" Stretch="Fill" Stroke="Black" UseLayoutRounding="False"/>
                            <TextBlock Margin="0" TextWrapping="Wrap" Text="Need Payment" Foreground="Red" FontSize="48" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                        </StackPanel>
                        <StackPanel VerticalAlignment="Top">
                            <TextBlock TextWrapping="Wrap" Text="{Binding TotalAmount}" HorizontalAlignment="Left" Foreground="#FF0C0000" Margin="10,0,0,0"/>
                            <Path Data="M0,30 L416,30" Margin="10,0,0,0" Stretch="Fill" Stroke="Black" UseLayoutRounding="False"/>
                            <StackPanel HorizontalAlignment="Center" Margin="0" Orientation="Horizontal">
                                <TextBlock Margin="0" TextWrapping="Wrap" Text="{Binding BookingItems.PAYMENTS.PaymentAmount}" Foreground="#FF0C0000" FontSize="32" HorizontalAlignment="Center"/>
                                <TextBlock Margin="5,0,0,0" TextWrapping="Wrap" Text="{Binding MoneyUnit}" Foreground="#FF0C0000" FontSize="32" HorizontalAlignment="Center"/>
                            </StackPanel>
                        </StackPanel>
                        <StackPanel VerticalAlignment="Top">
                            <TextBlock TextWrapping="Wrap" Text="{Binding ImportantNote}" HorizontalAlignment="Left" Foreground="#FF0C0000" Margin="10,0,0,0"/>
                            <Path Data="M0,30 L416,30" Margin="10,0,0,0" Stretch="Fill" Stroke="Black" UseLayoutRounding="False"/>
                            <TextBlock Margin="0" TextWrapping="Wrap" Text="{Binding ImportantNoteMsg}" Foreground="#FF0C0000" FontSize="28" HorizontalAlignment="Center"/>
                        </StackPanel>
                        <StackPanel VerticalAlignment="Top">
                            <TextBlock TextWrapping="Wrap" Text="{Binding Within}" VerticalAlignment="Top" HorizontalAlignment="Left" Foreground="#FF0C0000" Margin="10,0,0,0"/>
                            <Path Data="M0,30 L416,30" Margin="10,0,0,0" Stretch="Fill" Stroke="Black" UseLayoutRounding="False"/>
                            <TextBlock Margin="0" TextWrapping="Wrap" Text="{Binding WithinMsg}" Foreground="Red" FontSize="26.667" d:LayoutOverrides="VerticalAlignment" HorizontalAlignment="Center"/>
                        </StackPanel>
                    </StackPanel>
                </StackPanel>
            </ScrollViewer>
        </Grid>
		
		<Grid Grid.Row="2">
			<local:AppBarMenuUserControl/>
		</Grid>
		
		<!--TitlePanel contains the name of the application and page title-->

		<!--ContentPanel - place additional content here-->
	</Grid>
</phone:PhoneApplicationPage>